package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap54 extends OSMap
	{
		public function OSMap54()
		{
			super();

			var ground:OSGround = new OSGround(0, 640, 20, 440, 0, false);
			ground.setNoErosionDown([21]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]);
			ground.setNoErosionRight([1]);
			ground.erode();
			addBackground(ground);

			addBackground(new OSBridge(20, 660, 12, 5, true));

			ground = new OSGround(260, 640, 20, 440, 0, false);
			ground.setNoErosionDown([21]);
			ground.setNoErosionLeft([1]);
			ground.setNoErosionRight([4]);
			ground.erode();
			addBackground(ground);

			addBackground(new OSBridge(280, 720, 13, 5, true));

			ground = new OSGround(540, 680, 20, 400, 0, false);
			ground.setNoErosionDown([19]);
			ground.setNoErosionLeft([2]);
			ground.setNoErosionRight([1]);
			ground.erode();
			addBackground(ground);

			addBackground(new OSBridge(560, 700, 10, 5, true));

			ground = new OSGround(760, 680, 200, 400, 0, false);
			ground.setNoErosionDown([190, 191, 192, 193, 194, 195, 196, 197, 198, 199]);
			ground.setNoErosionLeft([10]);
			ground.setNoErosionRight([9, 19, 29, 39, 49, 59, 69, 79, 89, 99, 109, 119, 129, 139, 149, 159, 169, 179, 189, 199]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(0, 640, 20, 440, 0, false);
			ground.setNoErosionDown([21]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

		}
	}
}
